Skip to content

Add comprehensive Javadoc to XmlNodeBuilder#11925

Merged
gnodet merged 1 commit into
apache:masterfrom
utafrali:fix/issue-11526-xmlnodebuilder-javadoc
May 20, 2026
Merged

Add comprehensive Javadoc to XmlNodeBuilder#11925
gnodet merged 1 commit into
apache:masterfrom
utafrali:fix/issue-11526-xmlnodebuilder-javadoc

Conversation

@utafrali
Copy link
Copy Markdown
Contributor

Documents the previously under-documented XmlNodeBuilder class, covering multi-document stream reading behavior, whitespace trimming semantics, empty vs self-closing element handling, and all public method overloads with proper @param, @return, and @throws tags.

Closes #11526

Document the multi-document stream reading behavior, whitespace
trimming semantics, empty vs self-closing element handling, and
child-vs-text-value semantics. Also document all public build()
overloads and the InputLocationBuilder interface.

Closes apache#11526
Copy link
Copy Markdown
Contributor

@gnodet gnodet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean, well-done javadoc PR. The documentation accurately describes all key behavioral points:

  • Multi-document reading — matches the test in XmlNodeBuilderTest.testReadMultiDoc()
  • Whitespace trimming — matches DEFAULT_TRIM = true and the xml:space="preserve" check
  • Empty vs self-closing — matches the ternary: emptyTag ? null : ""
  • Child vs text — matches the children == null ? (value ...) : null logic
  • @throws IllegalStateException — matches the throw at end of the core build method
  • @deprecated javadoc tag — correctly pairs with the existing @Deprecated annotation and references XmlService

This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying.

Claude Code on behalf of Guillaume Nodet

@gnodet gnodet merged commit b9d73e0 into apache:master May 20, 2026
22 checks passed
@github-actions github-actions Bot added this to the 4.1.0 milestone May 20, 2026
@github-actions
Copy link
Copy Markdown

@gnodet Please assign appropriate label to PR according to the type of change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XmlNodeBuilder insufficiently documented

2 participants